package com.yx.changdao.common.enums;

/**
 * @Description: 月份枚举
 *
 * @Auther: zcz
 * @create 2020/5/15
 */
public enum NoWorkMonthEnum {

    JANUARY("01","一月"),
    FEBRUARY("02","二月"),
    MARCH("03","三月"),
    APRIL("04","四月"),
    MAY("05","五月"),
    JUNE("06","六月"),
    JULY("07","七月"),
    AUGUST("08","八月"),
    SEPTEMBER("09","九月"),
    OCTOBER("10","十月"),
    NOVEMBER("11","十一月"),
    DECEMBER("12","十二月");

    private String value;
    private String month;

    NoWorkMonthEnum(String value, String month){
        this.value=value;
        this.month=month;
    }

    public String getValue() {
        return value;
    }

    public String getMonth() {
        return month;
    }

    public static String getValue(String month) {
        for (NoWorkMonthEnum monthEnum : values()) {
            if(monthEnum.getMonth().equals(month)){
                return monthEnum.getValue();
            }
        }
        return null;
    }

}
